<%@ page import="com.sms.business.*"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="spring" uri="/spring"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Create User Form</title>
<style type="text/css">
.tableborder {
	border-style: solid;
	border-color: #ff0000 #0000ff;
	background-color: #85b9e9;
	width: 300px;
	height: 270px;
}
</style>
</head>
<body>
	<h1>Create User</h1>
	<c:if test="${ not empty error.allErrors}">
		<div id="errorFieldSet">
			<fieldset>
				<legend>Errors</legend>
				<c:forEach var="err" items="${error.allErrors}">
					<spring:message code="${err.code}" arguments="${err.arguments}" />
					<br />
				</c:forEach>
			</fieldset>
		</div>
	</c:if>
	<c:if test="${not empty infoMsg}">
		<div id="infoFieldSet">
			<fieldset>
				<legend>Information</legend>
				<spring:message code="${infoMsg}" />
			</fieldset>
		</div>
	</c:if>
	<c:if test="${not empty errorMsg}">
		<div id="infoFieldSet">
			<fieldset>
				<legend>Error</legend>
				${errorMsg}
			</fieldset>
		</div>
	</c:if>
	<div>
		<form:form method="POST" action="createUser.htm?method=saveCreateUser"
			commandName="createUserVO" cssClass="tableborder">
			<table>
				<tr>

					<td><label>Name:</label></td>
					<td><form:input id="name" cols="80" rows="8" path="name" /></td>
				</tr>

				<tr>
					<td><label>Last Name:</label></td>
					<td><form:input id="lastName" cols="80" rows="8"
							path="lastName" /></td>

				</tr>

				<tr>
					<td><label>Father Name:</label></td>
					<td><form:input id="fatherName" cols="80" rows="8"
							path="fatherName" /></td>

				</tr>

				<tr>
					<td><label>Age :</label></td>
					<td><form:input id="age" cols="80" rows="8"
							path="age" /></td>

				</tr>
				<tr>
					<td><label>Date of Birth :</label></td>
					<td><form:input  id="dob" cols="80" rows="8"
							path="dob" /></td>

				</tr>
				
	
				<tr>
					<td><label>Sex :</label></td>
					<td>
					<input type="radio" name="sex" value="male" checked="checked" >Male<br>
					<input type="radio" name="sex" value="female">Female</td>

				</tr>
				
				
				<tr>
					<td><label>Email ID :</label></td>
					<td><form:input  id="emailID" cols="80" rows="8"
							path="emailID" /></td>

				</tr>
				
				
				<tr>
					<td><label>Password :</label></td>
					<td><form:password  id="password" cols="80" rows="8"
							path="password" /></td>

				</tr>
				
				
				<tr>
					<td></td>

					<td valign="bottom" colspan="1"><input type="submit"
						name='Save' value="Save" class="button" /></td>
				

			</table>
		</form:form>
	</div>
</body>
</html>
